<table class="layui-table">

    <colgroup>
      <col width="150">
      <col width="200">
      <col>
    </colgroup>

    <thead>
      <tr>
        <th>ID</th>
        <th>用户名</th>
      </tr> 
    </thead>

    <tbody>
      <tr>
        <script type="text/html" template>
        <td>{{ d.params.id }}</td>
        <td>{{ d.params.name }}</td>
        </script>
      </tr>
    </tbody>

  </table>